home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 2003 September / PC Answers September 2003.iso / Software / trial / MonitorIT 5.2.06 / monitorit_fullsetup.exe / data1.cab / Rpm / ViewActiveCounters.asp < prev    next >
Encoding:
Text File  |  2003-06-24  |  22.3 KB  |  588 lines

  1. <html>
  2. <head>
  3. <title>Manage CounterWatch Monitoring</title>
  4.  
  5. <link rel="stylesheet" type="text/css" href="css/rpmstyle.css">
  6. <style>
  7.  
  8. .EventLog { border-style : solid; border-width : 3px; overflow : scroll;  background-color:white }
  9. .EventLog { border-top-color : graytext; border-left-color : graytext; border-bottom-color : white; border-right-color : white}
  10.  
  11. .VAMainBox { border: none; background-color : activeborder }
  12.  
  13. </style>
  14. </head>
  15.  
  16. <body class="bodyc" scroll="no" style="margin:3px; overflow: none"language="JavaScript" RPMHostIP="!BreakoutBot:MonitorIP!" RPMHostPort="!BreakoutBot:MonitorPort!" RPMUserName="!BreakoutBot:UserName!" BOBDone="!BreakoutBot:Done!"
  17. onload="top.banner.savePageCoord(event,document.body,'ServerWatch'); InitRpmCC_VA();" onbeforeunload="DiscoRpmCC_VA()" onresize="processSizeChange()" onclick="checkClick()" onkeydown="processBSP()">
  18.  
  19. <script LANGUAGE="JavaScript">
  20. <!--
  21. //.VAMainBox { border-top-color :  #E8E8E8; border-left-color : #E8E8E8; border-bottom-color : #555555; border-right-color : #555555 }
  22.  
  23. var bdH = 0;
  24. var byM = null;
  25. var borderSz = 2; // Thin Bord is 2pixels
  26. var PuPW = "500px", PuPWu=500, PuPH = "250px",PuPHu=250;
  27. var PopUH = 0;
  28. var PopUL = 0;
  29. var Tid = null, CTid= null, EMCTid = null;
  30. var ELogWinInit = ""; // save for ElogWin init HTML
  31. var ELBgFlg = 0; // Log Background color toggle
  32. var TitleTop = ButtonTop = 0;
  33. var TitleLeft = ButtonLeft = 0;
  34. var Hp = null; // Host port
  35. var ReconnectEvent = false;
  36. var NumberOfMCR = 0;
  37. var CurComputerID = null;
  38. var EMCmode = 0; // get Enum Monitored Counters mode;0=instance, 1=non-instance
  39. var EMCstatus = 0; // get EMC status
  40. var EMCcix = 0; // Computer Index
  41. var EMCcntix = 0; // Current Computer Counter Index
  42. var ELChkBoxCount = 0; // unchecked counter count
  43. var ComputerObjectArray = new Array();
  44. var ImageObjectArray = new Array();
  45. var CounterObjectArray = new Array();
  46. var CheckObjectArray = new Array();
  47. var GMCix = 0; // CounterObjectArray index
  48. var NewComputerCount = 0; // total count of computers in display
  49. // Capture and ignore script errors
  50.     window.onerror = wwScrErr;
  51. function wwScrErr() {
  52.     return true;
  53. }
  54.  
  55. /* On Load tell the Comm control to Connect to the Server */
  56. function InitRpmCC_VA() {
  57.     top.MainLoaded = true; // Flag that Main is now loaded
  58.     top.banner.savePageCoord(event,document.body,"ReviewActiveCounters");
  59.     byM = 2*parseFloat(document.body.style.margin);
  60.     top.main.restore(); // insure Tree pane is visible
  61.     processSizeChange();
  62.       /* Connect to Server */
  63.     Hp = parseInt(document.body.RPMHostPort,10);
  64.     RpmCC_VA.Connect(document.body.RPMHostIP,Hp, "");
  65. }
  66. function processReconnect() {
  67.     Tid = null;
  68.     if ( RpmCC_VA.IsConnected() ) {
  69.         Tid = setTimeout("processConnectionCheck()",30000); // Delay 30 secs then check connection
  70.         return;
  71.     }
  72.     RpmCC_VA.Connect(document.body.RPMHostIP,Hp, ""); 
  73. }
  74. function processConnectConfirmed() {
  75.     // Restore Filter and Computer Store    
  76.     if ( ReconnectEvent == false ) {
  77.          processLogWindow(); // initialize Log Window
  78.         ReconnectEvent = true;
  79.     }
  80.     top.Rstatus.Pstat("Connected");
  81.     processRefreshButton();
  82.     if ( Tid != null ) {
  83.         clearTimeout(Tid); // stop timeout routine
  84.     }
  85.     Tid = setTimeout("processConnectionCheck()",30000); // Delay 30 secs then check connection
  86. }
  87. function processConnectionCheck() {
  88.     Tid = null;
  89.     RpmCC_VA.SendKeepAlive("Check");
  90.     Tid = setTimeout("processConnectionCheck()",30000); // Delay 30 secs then check connection
  91. }
  92.  
  93. /* On Unload tell the Comm control to Disconnect from the Server */
  94. function DiscoRpmCC_VA() {
  95.     top.BannerMenuShow();
  96.     RpmCC_VA.Disconnect();
  97.     top.banner.processStopCommX();
  98.     if ( Tid != null ) {
  99.         clearTimeout(Tid); // stop timeout routine
  100.     }
  101. }
  102.  
  103. var SCbsy = false;
  104. function processSizeChange() {
  105.     if ( SCbsy ) 
  106.         return;
  107.     SCbsy = true;
  108.     // Display Height and Width
  109.     bCh = document.body.clientHeight;
  110.     bCw = document.body.clientWidth;
  111.     if ( top.main.IsTreeVisible() ) {
  112.         top.main.VCcw = bCw;
  113.     }
  114.         
  115.     // Minimums
  116.     bCh = (bCh < bdH+byM+PuPHu+20) ? bdH+byM+PuPHu+20 : bCh;
  117.     bCw = (bCw < PuPWu+10) ? PuPWu+10 : bCw;
  118.    document.body.scroll = (bCw <= PuPWu+10 || bCh <= bdH+byM+PuPHu+20) ? "yes" : "no";
  119.  
  120.    // Set Height/Widths for Main window area
  121.     VA_MainBox.style.height = bCh-(bdH+byM-borderSz)-10;
  122.     VA_MainBox.style.width = bCw-byM-4;
  123.     VA_MainBox.style.display = "";
  124.    
  125.     TitleTop = "24px";
  126.     TitleLeft = PopUL+145;
  127.   
  128.     //PopUpContext Menu
  129.    PopUpContextSize(bCw);
  130.   
  131.    // Set Height/Widths for Log areas
  132.     ELogWin.style.height = bCh-(bdH+byM-borderSz)-TitleDivSize;
  133.     ELogWin.style.width = bCw-byM-10;
  134.     SCbsy = false;
  135. }
  136.  
  137.  
  138. /* Initialize the Log and Filter Windows */
  139. function processLogWindow() {
  140.     /* Format Output to Log Window */
  141.     FOps = "<table border='0' cellpadding='1' cellSpacing='1' width='100%'><tr>";
  142.     FOps += "<td width='38%' align='center'  style='background-color:activeborder' class='optextb'>";
  143.     FOps += "Server/Device Name" + "</td>";
  144.     FOps += "<td width='38%' align='center' style='background-color:activeborder' class='optextb'>";
  145.     FOps += "Group Name" + "</td>";
  146.     FOps += "<td width='24%' align='center'  style='background-color:activeborder' class='optextb'>";
  147.     FOps += "OS" + "</td>";
  148.     FOps += "</tr></table>";
  149.      /*
  150.      FOps += "<table border='0' cellpadding='1' cellSpacing='1' width='100%'><tr>";
  151.     FOps += "<td width='5%' align='center'  style='background-color:white' class='optextb'>";
  152.     FOps += "</td>";
  153.     FOps += "<td width='49%' align='center'  style='background-color:activeborder' class='optextb'>";
  154.     FOps += "Counter Name" + "</td>";
  155.     FOps += "<td width='46%' align='center'  style='background-color:activeborder' class='optextb'>";
  156.     FOps += "Object Name" + "</td>";
  157.     FOps += "</tr></table>";
  158.     */
  159.     ELogWin.insertAdjacentHTML("afterBegin",FOps);
  160.     ELogWinInit = ELogWin.innerHTML; // save for Refresh
  161.      WarningBox.style.display = "";
  162. }
  163.  
  164. function processMonitoredCounterRecord(dStrg) {
  165.     var warr = new Array(), carr = new Array(), CPo = null, CNo = null;
  166.     warr = dStrg.split("~"); // parse the Monitored Counter string
  167.     if ( EMCmode == 0 && warr[10] == "NONE!" || //ignore if looking for instance counters
  168.            EMCmode == 1 && warr[10] != "NONE!" ) { // or looking for non-instance counters
  169.         return;
  170.     }
  171.         
  172.     // If non-instanced, check for duplicates with instanced
  173.     if ( EMCmode == 1 && NewComputerCount != 0) { 
  174.         // Look for existing Computer
  175.         for ( var i=1; i<=NewComputerCount; i++ ) {
  176.             CPo = ComputerObjectArray[i]; // Computer Entry object
  177.             if ( warr[2] == CPo.cid ) // if match
  178.                 break;
  179.         }
  180.         if ( i <= NewComputerCount ) { // if computer exists, see if already an instanced counter
  181.             carr = CPo.cntrix.split("~"); // get index to counter entries in object array
  182.             for ( var j=1; j<=CPo.ccnt; j++ ) {
  183.                 CNo = CounterObjectArray[ carr[j] ];
  184.                 if ( warr[8] == CNo.cntrnme ) // if match on counter, then duplicate
  185.                     return; // ignore
  186.             }
  187.             CurComputerID = warr[2]; // set to this computer
  188.             EMCcix = i;
  189.             EMCcntrix = j-1; // next available counter index for this computer
  190.         }
  191.         else {
  192.             EMCcix = NewComputerCount; // set index
  193.         }
  194.     }
  195.    //StatusPrintButton.className = "BoxButton"; // disable button
  196.    StatusPrintButton.disabled = ""; // disable button   
  197.     
  198.     // Process new Computer Entry if necessary
  199.     FOps = "";
  200.     var newCE = false; // flag no new computer entry
  201.     if ( warr[2] != CurComputerID ) { // if new Computer entry
  202.         ++EMCcix; // bump current computer index
  203.         newCE = true; // new computer entry
  204.         FOps = '<div style="margin:0; padding:0" id="ComputerLogLine'+EMCcix;
  205.         FOps += '" onclick="processComputerClick(this)" cstate="C" ccnt=1 cntrix="" cid="'+warr[2]+'">';
  206.         FOps += '<table border="0" cellpadding="0" cellSpacing="1" width="100%"><tr>';
  207.         FOps += '<td width="3%" align="center" style="cursor:hand;background-color:e8e8e8"';
  208.         FOps += ' title="Click to show/hide associated Counters and Objects">';
  209.         FOps += '<img id="CLLI'+EMCcix+'" src="images/Plus.gif" align="middle" height="11" width="11"></td>';
  210.         FOps += '<td width="35%" align="left" style="cursor:hand;background-color:e8e8e8" title="';
  211.         FOps += warr[4]+'" class="optext">';
  212.         FOps += warr[3] + '</td>';
  213.         FOps += '<td width="38%" align="left" style="cursor:hand;background-color:e8e8e8" title="';
  214.         FOps += warr[1]+'" class="optext">' + warr[0] + '</td>';
  215.         FOps += '<td width="24%" align="left" style="cursor:hand;background-color:e8e8e8" title="';
  216.         FOps += warr[5]+'" class="optext">';
  217.         osix = warr[5].indexOf("Windows");
  218.         FOps += warr[5].substring(osix+8) + '</td>';
  219.         FOps += '</tr></table></div>';
  220.         CurComputerID = warr[2];
  221.         EMCcntrix = 0; // reset counter index
  222.         ++NewComputerCount; // total number of computers in display
  223.     }
  224.     
  225.     // Process new Counter Entry 
  226.     ++EMCcntrix; // bump Counter count
  227.     FOps += '<div style="margin:0; padding:0" id="CounterLogLine'+EMCcix+'_'+EMCcntrix+'" cntrnme="'
  228.     FOps += warr[8]+'" style="background-color:white; display:none" mcids="' + warr[12] + '">';
  229.      FOps += '<table border="0" cellpadding="0" cellSpacing="1" width="100%"><tr>';
  230.     FOps += '<td width="4%" align="left" class="optext"></td>';
  231.     FOps += "<td width='4%' align='right' class='optext'>";
  232.     FOps += "<input style='cursor:hand' onclick='processCheckClick()' id='CB" + EMCcix +'_'+ EMCcntrix;
  233.     FOps += "' type='checkbox' title='Click to check/uncheck to enable/disable monitoring, respectively' CHECKED></td>";
  234.     FOps += '<td width="46%" align="left" style="cursor:hand" title="'+warr[9];
  235.     FOps += '" class="optext">' + warr[8] + '</td>';
  236.     FOps += '<td width="46%" align="left" style="cursor:handp" title="';
  237.     FOps += warr[7]+'" class="optext">' + warr[6];
  238.     // If an instanced name, append it
  239.     if ( warr[10] != 'NONE!' ) {
  240.         FOps += '_'+warr[10];
  241.     }
  242.     FOps += '</td></tr></table>';
  243.     
  244.     // Update Counter count in associated Computer entry
  245.     if ( EMCcntrix > 1 ) { // First one already defined
  246.         ComputerObjectArray[EMCcix].ccnt = EMCcntrix;
  247.     }
  248.     
  249.     // Either Append new [Computer]/Counter entry, or insert non-instanced Counter entry
  250.     if ( CNo == null ) {
  251.         ELogText.insertAdjacentHTML('beforeEnd',FOps);
  252.     }
  253.     else{
  254.         CNo.insertAdjacentHTML('afterEnd',FOps);
  255.     }
  256.     
  257.     // Save Counter Object and Computer Object in respective arrays
  258.     if ( newCE ) { // if new compter entry, save in Array
  259.         ComputerObjectArray[EMCcix] = document.all['ComputerLogLine'+EMCcix];
  260.         ImageObjectArray[EMCcix] = document.all['CLLI'+EMCcix];
  261.     }
  262.     CounterObjectArray[++GMCix] = document.all['CounterLogLine'+EMCcix+'_'+EMCcntrix];
  263.     CheckObjectArray[GMCix] = document.all['CB'+EMCcix+'_'+EMCcntrix];
  264.     ComputerObjectArray[EMCcix].cntrix += "~"+GMCix;
  265. }
  266.  
  267. /* Process Refresh button click */
  268. function processRefreshButton() {
  269.     top.banner.processStartComm();
  270.     ELogWin.innerHTML = ELogWinInit; // clear log
  271.     ELBgFlg = 0; // reset
  272.     CurComputerID = null;
  273.    SetButtonState(RefreshButton,"1"); // disable buttons
  274.    SetButtonState(ApplyButton,"1");
  275.     EMCmode = 0; // get instanced counters first
  276.     EMCstatus = 0; // reset status
  277.     EMCcix = 0; // reset Computer index
  278.     EMCcntix = 0; // Current Computer Counter Index
  279.     NumberOfMCR = 0; // reset count
  280.     NewComputerCount = 0;
  281.     GMCix = 0; // CounterObjectArray index
  282.     ELChkBoxCount = 0; // unchecked counters count
  283.     ComputerObjectArray.length = CounterObjectArray.length = 0; 
  284.     ImageObjectArray.length = CheckObjectArray.length = 0; 
  285.     RpmCC_VA.EnumMonitoredCounters(); // get active instanced counters
  286.    //StatusPrintButton.className = "BoxButtonD"; // disable button
  287.    StatusPrintButton.disabled = "disabled"; // disable button       
  288. }
  289.  
  290. /* Process a Counter Check box click */
  291. function processCheckClick() {
  292.     if ( document.all[event.srcElement.id].checked == "" ) {
  293.         ++ELChkBoxCount;
  294.     }
  295.     else {
  296.         --ELChkBoxCount;
  297.     }
  298.     if ( ELChkBoxCount != 0 ) {
  299.        SetButtonState(ApplyButton,"0");
  300.     }
  301.     else {
  302.        SetButtonState(ApplyButton,"1");
  303.     }
  304. }
  305.  
  306. /* Process Computer Entry Click to expand or contract it */
  307. function processComputerClick(eob) {
  308.     var warr = new Array();
  309.      var llix = eob.id.substring(15); // strip out index
  310.      var iob = ImageObjectArray[llix]; // get image object
  311.      var dstate = "none"; // default to display 
  312.      var cob = null;
  313.      if ( eob.cstate == "C" ) {
  314.          iob.src = "images/Minus.gif";
  315.          eob.cstate = "E";
  316.          dstate = "";
  317.     }
  318.     else {
  319.         iob.src = "images/Plus.gif";
  320.         eob.cstate = "C";
  321.     }
  322.     warr = eob.cntrix.split("~");
  323.     for ( var j=1; j<=eob.ccnt; j++ ) {
  324.         cob = CounterObjectArray[ warr[j] ];
  325.         cob.style.display = dstate;
  326.     }
  327.     iob.scrollIntoView(true);
  328. }
  329.  
  330. // Process Unselect Button Click
  331. function processUnselectButton() {
  332.     var carr = new Array(), CPo = null, CNo = null;
  333.     for ( var i=1; i<=NewComputerCount; i++ ) { // For each Computer entry
  334.         CPo = ComputerObjectArray[i]; // Computer Entry object
  335.         if ( CPo.cstate == "C" ) // if contracted, ignore
  336.             continue;
  337.         carr = CPo.cntrix.split("~"); // get index to counter entries in object array
  338.         for ( var j=1; j<=CPo.ccnt; j++ ) {
  339.             // if entry is checked, uncheck it and count it
  340.             if ( CheckObjectArray[ carr[j] ].checked != "" ) {
  341.                 CheckObjectArray[ carr[j] ].checked = "";
  342.                 ++ELChkBoxCount;
  343.             }
  344.         }
  345.     }
  346.     if ( ELChkBoxCount != 0 ) {
  347.        SetButtonState(ApplyButton,"0");
  348.     }
  349.     else {
  350.        SetButtonState(ApplyButton,"1");
  351.     }
  352. }
  353.  
  354. // Process Apply Button Click
  355. function processApplyButton() {
  356.     var carr = new Array(), CPo = null, CNo = null;
  357.     for ( var i=1; i<=NewComputerCount; i++ ) { // For each Computer entry
  358.         CPo = ComputerObjectArray[i]; // Computer Entry object
  359.         carr = CPo.cntrix.split("~"); // get index to counter entries in object array
  360.         for ( var j=1; j<=CPo.ccnt; j++ ) {
  361.             // if entry is unchecked, apply to server
  362.             if ( CheckObjectArray[ carr[j] ].checked == "" ) {
  363.                 RpmCC_VA.ChangeMonitoredCounter( CounterObjectArray[ carr[j] ].mcids ); 
  364.             }
  365.         }
  366.     }
  367.     processRefreshButton(); // refresh display
  368. }
  369. // Process Tree Button to hide/show Tree
  370. var TreeState = true;
  371. function processTreeButton() {
  372.     if ( !TreeState ) {
  373.         top.main.restore();
  374.         TreeState = true;
  375.     }
  376.     else {
  377.         top.main.expand();
  378.         TreeState = false;
  379.     }
  380. }
  381.  
  382. // Process to Toggle the Hide and Show of the Banner & Menu Frames
  383. var hideToggle = 0;
  384. var TitleDivSize = 115;
  385. function processBannerMenu() {
  386.     if ( hideToggle == 0 ) {
  387.         top.BannerMenuHide(); hideToggle = 1;
  388.         ActiveCounterTitleDiv.style.display = "none"; 
  389.         TitleDivSize = 65; 
  390.     }
  391.     else {
  392.         top.BannerMenuShow(); hideToggle = 0;   
  393.         ActiveCounterTitleDiv.style.display = "";  
  394.         TitleDivSize = 115;
  395.     }   
  396. }
  397. function SetButtonState(BtObj,BState) {
  398.     //BtObj.className = (BState == "0") ? "BoxButton" : "BoxButtonD";
  399.     BtObj.disabled = (BState == "0") ? "" : "disabled";
  400.     BtObj.bdis = BState;
  401. }
  402.  
  403. function PopUpContextOpen() {
  404. }
  405. function PopUpContextClose() {
  406. }
  407.  
  408. // Print Log
  409. var DiscStatWindow = null;
  410. function processPrintStatus() {
  411.     if ( !top.banner.IE55orBetter ) {
  412.         alert("Print requires IE 5.5/SP1 or greater. Download current, free IE update from Microsoft's web site");
  413.         return;
  414.     }
  415.     FakeBut.click();    // simulate event to call "savePageCoord(...)"
  416.     var wprop = "height="+top.banner.bCh+",width="+top.banner.bCw
  417.     wprop += ",top="+(top.banner.bY-28)+",left="+(top.banner.bX-4)+",scrollbars";
  418.     var rName = ""+Math.random(); // use Random number to get unique Window name
  419.     rName = rName.substring(2,rName.length);
  420.     DiscStatWindow = window.open("",rName,wprop);
  421.     if ( DiscStatWindow == null ) {
  422.         return;   
  423.     }
  424.     var dh = "<html><head><title>MonitorIT - CounterWatch Monitoring Status Report</title>";
  425.     dh += "<link rel='stylesheet' type='text/css' href='css/rpmstyle.css'></head><body";
  426.     dh += " title='Exit to Close Window when Printing is complete'>"; 
  427.     var warr = new Array();
  428.     warr = ELogWin.innerHTML.split("onclick");
  429.     dh += warr.join("");
  430.     dh += ' </body></html>';    
  431.     
  432.     DiscStatWindow.document.open();
  433.     DiscStatWindow.document.write(dh)
  434.     DiscStatWindow.document.close();
  435.     DiscStatWindow.print();
  436. }
  437. //-->
  438. </script>
  439.  
  440. <script LANGUAGE="JavaScript" src="js/MiscFunc.js"></script>
  441. <script LANGUAGE="JavaScript" src="js/SNMPInstances.js"></script>
  442.  
  443. <script LANGUAGE="JavaScript" FOR="RpmCC_VA" EVENT="Connected()">
  444. <!--
  445. processConnectConfirmed();
  446. //-->
  447. </script> 
  448.  
  449. <script
  450. LANGUAGE="JavaScript" FOR="RpmCC_VA" EVENT="DBChanged(cdata)">
  451. <!--
  452. var warr = new Array();
  453. warr = cdata.split("~"); // parse the event data
  454. // ignore if Server Table change or an Alert Table change
  455. if ( warr[0] != "1" && warr[0] == "4" ) {
  456.     top.banner.processDBChangeNotifyEvent(cdata);
  457. }
  458. //-->
  459. </script>
  460.  
  461. <script
  462. LANGUAGE="JavaScript" FOR="RpmCC_VA" EVENT="Disconnected()">
  463. <!--
  464. top.Rstatus.Pstat("Disconnected",true);
  465. if ( Tid != null ) {
  466.     clearTimeout(Tid); // stop timeout routine
  467. }
  468. Tid = setTimeout("processReconnect()",10000); // Delay 10 secs then try reconnnect
  469. //-->
  470. </script>
  471.  
  472. <script LANGUAGE="JavaScript" FOR="RpmCC_VA" EVENT="EnumMonitoredCountersRecord(dStrg)">
  473. <!--
  474. WarningBox.style.display = "none";
  475. WarningBox1.style.display = "none";
  476. ++NumberOfMCR;
  477. processMonitoredCounterRecord(dStrg);
  478. //-->
  479. </script> 
  480.  
  481. <script LANGUAGE="JavaScript" FOR="RpmCC_VA" EVENT="EnumMonitoredCountersDone(dStrg)">
  482. <!--
  483. EMCstatus += ( (dStrg == "Success!" ) ? 0 : 1 ); // save status
  484. if ( EMCmode == 0 ) { // if done with instanced counters, get non-instanced
  485.     EMCmode = 1;
  486.     RpmCC_VA.EnumMonitoredCountersNoInst(); // get active counters
  487. }
  488. else {
  489.     top.banner.processStopCommX(); 
  490.     WarningBox.style.display = "none";
  491.     if ( EMCstatus == 0 ) {
  492.         if ( NumberOfMCR == 0 ) {
  493.             WarningBox1.style.display = "";
  494.             top.Rstatus.Pstat("No Counters Being Monitored",true);
  495.         }
  496.         else{
  497.             WarningBox1.style.display = "none";
  498.             top.Rstatus.Pstat("Done");
  499.         }
  500.     }
  501.     else {
  502.         top.Rstatus.Pstat("Error Obtaining Current Active Monitored Counter Records",true);
  503.     }
  504.    SetButtonState(RefreshButton,"0"); // enable buttons
  505. }
  506.  
  507. function PopUpContextOpen() {
  508. }
  509. function PopUpContextClose() {
  510. }
  511.  
  512. //-->
  513. </script> 
  514.  
  515. <script LANGUAGE="JavaScript" FOR="RpmCC_VA" EVENT="StopCommunication()">
  516. <!--
  517. top.banner.processStopCommX();
  518. //-->
  519. </script> 
  520.  
  521. <script LANGUAGE="JavaScript" src="js/PopUpMenuFunc.js"></script>
  522.  
  523. <object ID="RpmCC_VA" NAME="RpmCC_VA" WIDTH="14" HEIGHT="1" style="display:none"
  524. CLASSID="CLSID:D88C2358-FC83-11D1-BF49-00104B2D6F80" CODEBASE="controls/RPMComm.cab#version=5,2,0,0">
  525.   <param name="_Version" value="65536">
  526.   <param name="_ExtentX" value="2646">
  527.   <param name="_ExtentY" value="1341">
  528.   <param name="_StockProps" value="0">
  529. </object>
  530.  
  531. <!-- Define Images used in dynamic HTML generation to force loading and caching now -->
  532. <div style="display:none">
  533. <img src="images/Plus.gif">
  534. </div>
  535.  
  536.  
  537. <!-- Invisible Object to Support Simulated Click Event -->
  538. <button id="FakeBut" style="display:none" onclick="top.banner.savePageCoord(event,document.body,'ViewAlerts')">
  539. </button>
  540. <select SIZE="1" NAME="AC_ServicesStore" style="display: none"></select>
  541. <div id="AC_FilterComp" style="display:none">  
  542.   <select SIZE="1" NAME="AC_CompStore"></select>  
  543.   <select SIZE="1" NAME="AC_FilterStore"></select>  
  544. </div>
  545.  
  546. <center>
  547.  
  548.  <div id="VA_MainBox" class="VAMainBox" style="display:none">
  549.   
  550.   <div id="ActiveCounterTitleDiv"><table border="1"  borderColor="activeborder" align="left">
  551.     <tr><td borderColorDark="graytext" borderColorLight="white" style="font-weight:800; font-size:12pt; background-color:threedhighlight; color:windowtext"> <img src="images/sReviewActiveMonitors.gif" align="absmiddle" height="14" width="13"> Manage CounterWatch Monitoring </td></tr>
  552. </table>
  553. <BR CLEAR=ALL><HR align="left"></div>
  554.  
  555.  
  556. <center class="inputlabel">Current Counters Being Monitored</center>
  557. <div class="EventLog" ID="ELogWin" style="width:98%" align="center">
  558.  
  559. <center><div style="display:none; width:100%" id="WarningBox" align="center"><table border="0" cellpadding="0" cellspacing="2">
  560.   <tr>
  561.     <td width="43"><img src="images/HourGlass.gif" width="32" height="32" alt="Please Wait!" align="bottom" border="0"></td>
  562.     <td width="*" style="font-family:Arial; font-size:10pt; font-weight:bold; color:infotext">Please Wait For List of Current Counters Being Monitored!</td>
  563.   </tr>
  564. </table>
  565. </div>
  566. <div style="display:none; width:100%" id="WarningBox1" align="center"><table border="0" cellpadding="0" cellspacing="2">
  567.   <tr>
  568.     <td width="*" style="font-family:Arial; font-size:10pt; font-weight:bold; color:red">There Are Currently No Counters Being Monitored!</td>
  569.   </tr>
  570. </table>
  571. </div></center>
  572.  
  573.  
  574. <span id="ELogText"></span><select id="LogArray" style="display:none"></select></div>
  575.  <div style="height:0px; width:100%" align="center">
  576.    <table width="100%"><tr><td height="2"></td></tr></table>
  577.    <table border="1" cellspacing="1" cellpadding="1" width="100%" height="40">
  578.     <tr>
  579.         <td width="20%"><button id="cTreeButton" style="cursor:hand" onclick="processTreeButton()" title="Press to Toggle Tree View" ><img src="images/treehideshow.gif" height="18" width="19"></button></td><td align="center" width ="60%"><button id="UnselButton" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" title="Unselect All Displayed Counters" style="width:100px; height:27px" onClick="processUnselectButton()" > <img src="images/UnselectAll.gif" align="absmiddle" height="15" width="14">Unselect All</button> <button id="ApplyButton" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" title="Apply the Unselect Changes" style="width:80px; height:27px" onClick="processApplyButton()" disabled><img src="images/Apply.gif" align="absmiddle" height="16" width="16">Apply</button> <button id="RefreshButton" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" title="Refresh the Display" style="width:80px; height:27px" onClick="processRefreshButton()"><img src="images/Verify.gif" align="absmiddle" height="15" width="13">Refresh</button> <button id="StatusPrintButton" title="Print CounterWatch Monitoring Status Display" onclick="if (this.bdis == '0') processPrintStatus();" bdis="0" style="width:80px; height:27px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" DISABLED><img src="images/Printer.gif" align="absmiddle" height="15" width="17"> Print</button></td><td width="20%" align="right"><button onclick="processBannerMenu()" title="Press to Toggle Hide/Show of Menu and Banner Frames" style="cursor:hand"><img src="images/FullView.gif" align="absmiddle" height="16" width="16"></button></td></tr>
  580.    </table>
  581.   </div>
  582.  </center></div>
  583.  
  584.  
  585. </center>
  586. </body>
  587. </html>
  588.